package xyz.zhouxf.rpc.provider;

/**
 * @author zhouxf
 * @date 2022/8/31
 */
public interface ServiceProvider {
    /**
     * 添加服务
     * @param service
     * @param serviceName
     * @param <T>
     */
    <T> void addService(T service, String serviceName);

    /**
     * 获取服务
     * @return
     */
    Object getService(String serviceName);
}
